export const debug = true; // 是否调试
var isUat = false; // 

//如果以后有新的运营方，则更改以下参数
const JH = 'JH'; //建华
const LF = 'LF'; //良方
const TG = 'TG'; //唐古

const compInfo = {
        'JH': {
                companyId: 2,
                companyName: '神农中医'
        },
        'LF': {
                companyId: 5,
                companyName: '良方国医'
        },
        'TG': {
                companyId: 1,
                companyName: '唐古国医'
        }
}

const currentComp = TG;                         //每次打包前，根据不同的客户进行更改: JH/LF
export const companyId = compInfo[currentComp].companyId;
export const companyName = compInfo[currentComp].companyName + (debug ? '(测试)' : '');
export const isJH = (currentComp === JH);       //是否是建华，用来控制某些功能的开启或关闭


export const index_menu_list = [{
        id: 1,
        image: '../../images/sendRegister.png',
        text: '预约挂号'
}, {
        id: 2,
        image: '../../images/photoMed.png',
        text: '拍方抓药'
}, {
        id: 3,
        image: '../../images/community.png',
        text: '健康社区'
}, {
        id: 4,
        image: '../../images/shop.png',
        text: '优选商城'
}]; // 首页四大功能

export const bannerImageUrls = [
        "https://imgs.tangusoft.com/tangu/wx_med_clientbanner1.jpg",
        "https://imgs.tangusoft.com/tangu/wx_med_clientbanner2.jpg",
        "https://imgs.tangusoft.com/tangu/wx_med_clientbanner3.jpg"
]; // 轮播图片

export const lookExampleImages = ['https://imgs.tangusoft.com/tangu/wx_med_clientrecipe_sample.jpg']; // 查看示例图片

const im_appkey = '1114210506203940#aicaoyisheng';
const prod_im_appkey = '1114210506203940#aicaoyisheng';
const qiniu_url = 'http://opthjs8t2.bkt.clouddn.com/';
const prod_qiniu_url = 'https://imgs.tangusoft.com/';


var tanguHost = isUat ? "https://uat.tangusoft.com" : 'http://192.168.0.16:8088'; // 调试lg

export const HOST = debug ? tanguHost : 'https://his.365yyf.com';
export const IM_APPKEY = debug ? im_appkey : prod_im_appkey;
export const URL_UPLOAD_RECIPE_PIC = prod_qiniu_url; // 使用正式的地址
// export const URL_UPLOAD_RECIPE_PIC = debug? qiniu_url: prod_qiniu_url;
export const IMAGE_MOGR = '?imageMogr2/thumbnail/150x100';


//MODEL开头的常量将作为app.model里的key
export const MODEL_UserId = 'MODEL_UserId'; //环信id
export const MODEL_Pwd = 'MODEL_Pwd'; //环信pwd
export const MODEL_JWT_KEY = 'MODEL_JWT_KEY'; //jwt
// export const MODEL_User_Info = 'MODEL_User_Info';	//weChat user info
export const MODEL_person_Info = 'MODEL_person_Info';
export const MODEL_chat_list = 'MODEL_chat_list';
export const MODEL_ChatMsg_pre = 'MODEL_ChatMsg_'; //与好友的聊天记录 前缀
export const MODEL_local_data = 'MODEL_local_data'; //全国地区数据

export const TYPE_consult = 'consult';
export const TYPE_recipe = 'recipe';
export const TYPE_specialty = 'specialty'; // 专科秘技咨询

// 接口
export const appSecret = '4c084d4e0c895b1c9535495add74dc76'
export const URL_LOGIN = HOST + '/recipecloud/mobileMain/registerAndLoginAuthor';
export const URL_SEARCH_DOCTORS = HOST + '/recipecloud/mobileEmployee/appListQuery';
export const URL_GET_CHATLIST = HOST + '/recipecloud/mobileEmployee/selectDocterMessage';
export const URL_SAVE_PERSON_DATA = HOST + '/recipecloud/mobilePatient/edit';
export const URL_GET_PERSON_DATA = HOST + '/recipecloud/mobilePatient/read';
export const URL_GET_RECIPE_LIST = HOST + '/recipecloud/mobileRecipe/page';
export const URL_GET_RECIPE_DETAIL_MSG = HOST + '/recipecloud/mobileRecipe/read';
export const URL_GET_RECIPE_LOGISTICS_MSG = HOST + '/recipecloud/mobileRecipe/queryState';
export const URL_GET_REFUND_MSG = HOST + '/recipecloud/recipe/queryRefund';
export const URL_GET_CONSULT_HISTORY_LIST = HOST + '/recipecloud/mobileConsult/page';
export const URL_GET_CONSULT_MSG = HOST + '/recipecloud/mobileConsult/read';
export const URL_GET_DOC_DETAIL_MSG = HOST + '/recipecloud/mobileEmployee/appDetailQuery';
export const URL_SEND_MODIFY_RECIPE_MSG = HOST + '/recipecloud/MobilePayment/confirmRecipe';
export const URL_SAVE_CONSULT_MSG = HOST + '/recipecloud/mobileConsult/add';
export const URL_GET_PHONE_SMS_CONTENT = HOST + '/recipecloud/mobilePatient/outcode'; //获取短信验证码

export const URL_UPLOAD_RECIPE_PIC_REGION = 'https://up.qiniup.com';
export const URL_GET_UPLOAD_RECIPE_PIC_TOKEN = HOST + '/recipecloud/mobileToken/uploadToken';
export const URL_GET_CHAINA_ADDR_MSG = HOST + '/recipecloud/data/china.json';

export const URL_SAVE_PHOTO_RECIPE = HOST + '/recipecloud/mobileRecipe/uploadRecipeByPatient'; //拍方上传
export const URL_LOOK_INITIAL_RECIPE = HOST + '/recipecloud/mobileRecipe/readOldRecipeByPatient'; // 查看原始方


// 默认数据配置
export const IM_DOC_PREFX = 'doctor'; //医生的环信id = 'doctor'+医生id;
export const initAvatarUrl = "/images/icon1.jpeg"; // 默认头像
export const MALE = 0; // 男性
export const FEMALE = 1; // 女性
export const UP_TOKEN = "upToken"; // 七牛云上传的token
export const DOCTOR_INFO = "doctorInfo"; // 存储暂时的医生信息
export const HISTORY_CONSULT_ID = "historyConsultId"; // 存储暂时的历史问诊单id
export const SAVE_PAY_SUC_RECIPE_MSG = "savePaySucRecipeMsg"; // 存储暂时的成功支付后的调理方案信息

//配送方式
export const SF_EXPRESS_TYPE = 1; //顺丰
export const MAIL_EXPRESS_TYPE = 2; //邮政
export const SEND_HOSPITAL_EXPRESS_TYPE = 3; //送医院
export const OTHER_EXPRESS_TYPE = 99; //快递